/*
 * File:   util.h
 * Author: dolphinigle
 *
 * Created on December 2, 2011, 5:57 PM
 */

#ifndef UTIL_H
#define	UTIL_H

#include <string>
using std::string;

// Returns true if path doesn't ends with '/'.
// IsFileName("a/b/c") == TRUE
// IsFileName("a/b/c/") == FALSE
bool IsFileName(const string& path);

// IsDirectoryName(a) == !IsFileName(a)
bool IsDirectoryName(const string& path);

string IntToString(int i);

int StringToInt(string str);

string GetFolder(string path);

#endif	/* UTIL_H */

